USERNAME = 'root'

PASSWORD = '12345678'

HOSTNAME = '127.0.0.1'

PORT = 3306

DATABASE = 'flask_sz'

# DB_URI = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}?charset=utf8mb4'
DB_URI = f'mysql+mysqldb://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}?charset=utf8mb4'

SQLALCHEMY_DATABASE_URI = DB_URI


# 邮箱配置
MAIL_SERVER = 'smtp.163.com'
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = 'zxh20210o@163.com'
# MAIL_PASSWORD = 'lzqgmyvqkblpbcja'
# 网易邮箱密码
MAIL_PASSWORD = 'DKtxwwTMXvqdnXXk'
MAIL_DEFAULT_SENDER = 'zxh20210o@163.com'


SECRET_KEY = 'fdsfgjdljglkfdjgkldfgfg'